<%@ Control Language="vb" AutoEventWireup="false" Explicit ="true"  codefile="_View.ascx.vb" Inherits="NVPortal.Modules.NVNews._View" %>
<style type="text/css">
.BannerHeader {background: url('/Portals/_default/Skins/MinimalExtropy/images/bread_bg.png') repeat-x; height:34px;
text-align: center; font-family: Tahoma; font-size: 12px; font-weight: bold;}

</style>
<table style="width: 100%">
    <tr>
        <td>
            <table cellpadding="0" cellspacing="0">
                <tr>
                    <td style="padding:2px;"><asp:LinkButton id="lbtAddTop" runat="server" Font-Bold="True"><img src="/images/Athemmoi.jpg" style="border: 0px;" alt="Thêm tin mới" /></asp:LinkButton></td>
                </tr>
            </table>
        </td>
    </tr>
    <tr><td></td></tr>
    <tr><td>
    <asp:DataGrid DataKeyField ='id' id="drgViewData" runat="server" CellPadding="4" AutoGenerateColumns="False" Width="100%" GridLines="None" ForeColor="#333333">
	<Columns>
    <asp:BoundColumn DataField="Title" HeaderText="Ti&#234;u đề"></asp:BoundColumn>
     <asp:TemplateColumn HeaderText="Ảnh">
            <ItemTemplate>
                <asp:Image heiht="30" ImageUrl ='<%# PortalSettings.HomeDirectory & "News/Nguon/" & DataBinder.Eval(Container.DataItem, "logo") %>' AlternateText="" ID="imgNews" runat="server" />
            </ItemTemplate>
            <ItemStyle Width="60px" />
        </asp:TemplateColumn>
        <asp:TemplateColumn HeaderText="Sửa">
			<ItemTemplate>
				<asp:HyperLink id="Hyperlink1" NavigateUrl='<%# "/tabid/" & tabid & "/view/edit/Itemid/" & DataBinder.Eval(Container.DataItem,"id") & "/Default.aspx" %>' runat="server" >
					<asp:Image id="editLinkImage" ImageUrl="~/images/edit.gif" AlternateText="Edit" Runat="server" />
				</asp:HyperLink>
			</ItemTemplate>
		</asp:TemplateColumn>
	</Columns>
    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
    <EditItemStyle BackColor="#999999" />
    <SelectedItemStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
    <AlternatingItemStyle BackColor="White" ForeColor="#284775" />
    <ItemStyle BackColor="#F7F6F3" ForeColor="#333333" />
    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
	<PagerStyle HorizontalAlign="Center" ForeColor="#333333" BackColor="#FFCC66"></PagerStyle>
        <AlternatingItemStyle BackColor="White" />
</asp:DataGrid></td></tr>
    <tr><td></td></tr>
    <tr><td>
    <table cellpadding="0" cellspacing="0">
        <tr>
            <td style="height: 20px;"><asp:LinkButton id="lbtAddBottom" runat="server" Font-Bold="True">
                <img border="0" src="/images/Athemmoi.jpg" title="Thêm mới" /></asp:LinkButton></td>
            <td width="20"></td>
        </tr>
    </table>
    
    
    
    </td></tr>
</table>
